package com.system.boot.setting.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.system.api.setting.entity.dto.DictFormDto;
import com.system.api.setting.entity.po.SysDict;
import org.yang.common.core.exception.BaseException;
import org.yang.database.orm.entity.BaseQuery;
import org.yang.database.orm.entity.Options;

import java.util.List;

/**
 * 字典目录
 *
 * @author: lslands
 * @version: 1.0
 * @create: 2024/5/18
 * @description:
 */
public interface DictService extends IService<SysDict> {

    /**
     * 判断编码是否重复
     * @param code 编码
     * @author lslands
     * @date 2024/5/16 00:57
     * @throws BaseException 字段重复异常
     */
    void isExists(String code) throws BaseException;


    /**
     * 刷新字典缓存
     * @param flag 是否刷新
     */
    void resetCache(boolean flag);
}
